<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

<%@ page import="java.io.*" %>

<div class="section_block">
	<h2 class="section_title">
		<spring:message code="error.title" text="Errore"/> - <span class="span-stacktrace"><spring:message code="error.stacktrace" text="Stacktrace"/></span>
	</h2>
	<table cellspacing="10" cellpadding="0" style="width: 100%;">
		<tr>
			<td align="left"><b><spring:message code="${exception.message}" text="Errore"/></b></td>
		</tr>
	</table>
</div>

<div class="stacktrace">
		<%
			Exception ex2 = (Exception)request.getAttribute("exception");
			ex2.printStackTrace(new PrintWriter(out));
		%>
</div>

<script>
	$(document).ready(function($) {
		$(".span-stacktrace").click(function(){
			if($(".stacktrace").css("display") == 'none') {
				$(".stacktrace").show("slow");	
			}
			else {
				$(".stacktrace").hide("slow");
			}
		});
	});
</script>